<template>
	<view class="box">


		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			InputFocus(e) {
				this.setData({
					InputBottom: e.detail.height
				});
			},
			InputBlur(e) {
				this.setData({
					InputBottom: 0
				});
			},
			getimg() {
				uni.chooseImage({
					// count: 6, //默认9
					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album', 'camera'], //从相册选择
					success: (res) => {
						console.log(res)
						res.tempFilePaths.forEach((item, index) => {
							this.messageList.push({
								type: '1', //0是我的文字，1是我的图片，2是对方文字，3是对方图片
								content: res.tempFilePaths[index],
								time: new Date().getDate()
							})
							console.log(item);
						})

					},
					fail: (err) => {
						console.log(err)
					}
				});
			},
			showtool() {
				this.tool_open = !this.tool_open
				this.show = !this.show
				this.bott = 'mes_' + (this.messageList.length - 1)
				this.calculateChatBoxHeight();
				console.log('这是id')
				// console.log(this.bott)
				uni.hideKeyboard()
			},
			postInvite() {
				uni.$emit('showList', true)
			},
			showEmoji() {

			}
		}
	}
</script>

<style scoped lang="less">
	.tools {
		width: 100%;
		height: 30vh;
		// border: 1px solid black;
		display: flex;
		// justify-content: space-evenly;
		// align-content: space-between;
		flex-wrap: wrap;

		.tool {
			margin-left: 5vw;
			margin-top: 5vh;
			width: 20vw;
			height: 10vh;

			// border: 1px solid black;
			.tool_t {
				width: 14vw;
				text-align: center;
				margin-top: 1vh;
				height: 8vh;
				// border: 1px solid black;
				background-color: white;
			}
		}
	}
</style>